package com.sf.fy.uav.good.controller;

import com.sf.fy.uav.common.response.order.task.GoodsResponse;
import com.sf.fy.uav.common.response.order.task.GoodsTypeResponse;
import com.sf.fy.uav.good.service.IGoodsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * <p>
 * 物资类型 前端控制器
 * </p>
 *
 * @author LTQ
 * @since 2023-04-13
 */
@Controller
@RequestMapping("/sys/goods-type")
public class GoodsTypeRest {

    @Autowired
    private IGoodsTypeService iGoodsTypeService;

    //    @RequestMapping("/get-all")
    public List<GoodsTypeResponse> getGoodsType() {
        return iGoodsTypeService.getGoodsType();
    }

    public List<GoodsTypeResponse> getCityGoodsType() {
        return iGoodsTypeService.getCityGoodsType();
    }


    public GoodsTypeResponse getById(String id) {
        return iGoodsTypeService.getById(id);
    }
}
